<template>
  <div class="frame" style="padding: 0px">
      <!-- Header Section -->
      <el-row>
          <el-col :span="24">
              <div class="header-section">
                  <h1>数据要素解决方案</h1>
                  <p>辅助客户全方位实现司法服务，为客户提供区域政务检测、</p>
                    <p>数字化精准实施，企业全生命周期管理、政务政策精准推送等服务</p>
                  <button class="btn-consult" type="primary" @click="openForm">方案咨询</button>
              </div>
          </el-col>
      </el-row>

      <!-- Our Flow Section -->
      <el-row>
          <el-col :span="24">
              <div class="our-content">
                  <h2>我们的服务流程</h2>
              </div>
          </el-col>
      </el-row>
      <el-row>
          <el-col :span="24">
              <div class="our-flow">
                  <img src="@/assets/images/OurFlow.png" alt="流程图" class="flow-image">
              </div>
          </el-col>
      </el-row>



      <el-row class="our-program" gutter="20">
    <!-- 每个服务项 -->
    <el-col :span="6" class="service-item">
      <div class="service-content">
      <div class="icon">👥</div>
      <h3>需求分析</h3>
    </div>
    <div class="content">
      <p>为客户定制专属需求</p>
      <p>一切以客户为主，从客户的实际需求出发，对潜在或进行业务上全面而精准的需求，定制属于客户的专属方案，面对面交流，线上实施，快速实现。</p>
    </div>
    </el-col>
    
    <el-col :span="6" class="service-item">
      <div class="service-content">
      <div class="icon">⚙️</div>
      <h3>标注数据</h3>
    </div>
      <p>规范标准化数据标注</p>
      <p>国家政策调理以新技术、新模式为依托，以深度数据测标成为数据应用的手段，强化数据标准协同，提升数据测规制度的深度与准确性，并推动测距信息互享互通和便捷共享。</p>
    </el-col>

    <el-col :span="6" class="service-item">
      <div class="service-content">
      <div class="icon">📦</div>
      <h3>训练模型</h3>
    </div>
      <p>高性能模型训练提高服务</p>
      <p>国家政策调理以新技术、新模式为依托，以深度数据测标成为数据应用的手段，强化数据标准协同，提升数据测规制度的深度与准确性，并推动测距信息互享互通和便捷共享。</p>
    </el-col>

    <el-col :span="6" class="service-item">
      <div class="service-content">
      <div class="icon">🚀</div>
      <h3>引擎部署</h3>
    </div>
      <p>多种引擎方式部署选择</p>
      <p>国家政策调理以新技术、新模式为依托，以深度数据测标成为数据应用的手段，强化数据标准协同，提升数据测规制度的深度与准确性，并推动测距信息互享互通和便捷共享。</p>
    </el-col>
  </el-row>

  <div class="our-products">
            <h1 class="consult-title" style="height: 30px;">我们的产品优势</h1>
                <div class="industries">
                    <span>高效实用</span>
                    <span>法律公司、初创企业</span>
                    <span>政务、司法、公安</span>
                    <span>医疗、教育、电商</span>
                </div>
        </div>

      <el-row>
          <el-col :span="24">
            <div class="frame-footer">
                  <h1 class="expore-text">立即探索，解锁更多产品详情</h1>
                  <button class="btn-consult" type="primary" @click="openForm">申请使用 ></button>

                      <!-- 表单对话框 -->
    <el-dialog title="申请试用" :visible.sync="dialogVisible" width="600px" @close="resetForm">
      <el-form ref="form" :model="form" label-width="80px" class="form-container">
        <el-form-item label="姓名">
          <el-input v-model="form.name"></el-input>
        </el-form-item>
        <el-form-item label="职业">
          <el-select v-model="form.region" placeholder="请选择活动区域">
            <el-option label="法律相关领域" value="law"></el-option>
            <el-option label="教育相关领域" value="education"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="出生日期">
          <el-col :span="11">
            <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
          </el-col>
         
        </el-form-item>
        <el-form-item label="使用性质">
          <el-radio-group v-model="form.resource">
            <el-radio label="商用"></el-radio>
            <el-radio label="个人使用"></el-radio>
                        <el-radio label="政府单位使用"></el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="申请说明">
          <el-input type="textarea" v-model="form.desc"></el-input>
        </el-form-item>

        <!-- 按钮组 -->
        <el-form-item class="button-group">
          <el-button type="primary" @click="submitForm">提交</el-button>
          <el-button @click="dialogVisible = false">取消</el-button>
        </el-form-item>
      </el-form>
    </el-dialog>
              </div>
          </el-col>
      </el-row>
  </div>
</template>

<script>
export default {
  name: "solution",
      data() {
          return {
            dialogVisible: false, // 控制对话框的显示与隐藏
            form: {
                name: '',
                region: '',
                date1: '',
                date2: '',
                delivery: false,
                type: [],
                resource: '',
                desc: ''
        }
          };
      },

  methods: {
    openForm() {
      this.dialogVisible = true; // 打开对话框
    },
    submitForm() {
      this.$refs.form.validate((valid) => {
        if (valid) {
          this.$message.success('申请已提交！');
          this.dialogVisible = false;
          this.resetForm();
        } else {
          this.$message.error('请完整填写表单！');
          return false;
        }
      });
    },
    resetForm() {
      this.$refs.form.resetFields(); // 重置表单内容
    }    
    }
  };
</script>

<style rel="stylesheet/scss" lang="scss">
.frame {
font-family: Arial, sans-serif;
padding: 20px;
}

.header-section {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 60px 20px;// 调整内边距
padding-left: 200px;// 调整左侧内边距
background-image: url('~@/assets/images/solution_bg.png');
background-size: cover;
background-position: center;
height: 520px;// 调整背景高度
color: white;
margin-bottom: 20px;// 调整下边距
border-radius: 10px;// 添加圆角边框
text-align: left;
}

.header-section h1 {
font-size: 4rem;
font-weight: bold;
color: #333;
}

.header-section p {
font-size: 1.5rem;
color: rgb(47, 107, 236);// 调整文字颜色
margin: 10px 0;
max-width: 700px;
}

.btn-consult {
background-color: #007bff;
color: white;
padding: 10px 20px;// 调整按钮内边距
font-size: 1.5rem;
border: none;// 去掉边框
border-radius: 8px;//添加圆角边框
cursor: pointer;//鼠标悬停时显示手型
margin-top: 15px;//调整按钮上边距
transition: background-color 0.3s;//添加背景颜色过渡效果
}

.btn-consult:hover {
background-color: #0056b3;
}

.our-flow {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 40px 20px;
padding-left: 150px;// 调整左侧内边距
background-image: url('~@/assets/images/solution/popularSceneBg.png');
background-size: cover;
background-position: center;
// height: 520px;// 调整背景高度
border-radius: 10px;
text-align: left;
}

.our-content {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
padding: 0px 20px;
padding-left: 200px;// 调整左侧内边距
border-radius: 10px;
text-align: left;
margin-top: -40px;
}

.our-content h2 {
font-size: 3rem;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}

.flow-image {
max-width: 80%;
height: auto;
border-radius: 5px;
border: 2px solid #ccc;
background-color: white;
padding: 10px;
display: block;
margin: 0 auto;
}

.our-program {
  padding: 20px 40px;
  background-color: #f7faff;
  border-radius: 10px;
  padding-left: 200px;
}

.our-product {
  padding: 20px 40px;
  background-image: url('~@/assets/images/solution/advantage_Bg.png');
  background-size: cover;
  background-position: center;
  height: 250px;// 调整背景高度
  border-radius: 10px;
  padding-left: 200px;
}

.service-item {
  text-align: left;
  padding: 20px;
}

.icon {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 10px;
  margin-right: 15px;
}

.service-content {
  display: flex;
  align-items: center;
}

.service-item h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.content{
  display: flex;
  flex-direction: column;
}

.service-item p {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin: 5px 0;
  padding-left: 50px;
}

.service-item p:first-of-type {
  font-weight: bold;
  color: #333;
}

.our-product h1{
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  color: white;
  
}

.our-product p{
  font-size: 1rem;
  color: white;
  line-height: 1.5;
  margin: 5px 0;
  padding-left: 50px;
}

.our-product .icon {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 10px;
  margin-right: 15px;
}


.our-flow {
  padding: 20px 40px;
  background-color: #f7faff;
  border-radius: 10px;
}

.our-flow h2 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.expore-item h1 {
font-size: 1.5rem;
font-weight: bold;
color: #554af0;
}

.frame-footer {
    background-color: #f7faff;
    height: 130px;
    padding-left: 200px;
}

.expore-text {
    color: cornflowerblue;
    font-size: 25px;
    // padding: 20px;
    // margin-bottom: 100px; /* 设置底部外边距 */
}

.btn-consult {
background-color: #007bff;
color: white;
padding: 10px 20px;// 调整按钮内边距
font-size: 1.2rem;
border: none;// 去掉边框
border-radius: 8px;//添加圆角边框
cursor: pointer;//鼠标悬停时显示手型
margin-top: 15px;//调整按钮上边距
transition: background-color 0.3s;//添加背景颜色过渡效果
}

.btn-consult:hover {
background-color: #0056b3;
}

.our-products {
    background-image: url('~@/assets/images/solution/advantage_Bg.png');
    width: 100%;
    height: 200px; /* 设置高度 */
    margin: 0 auto;
    padding: 20px;
    text-align: left;
    position: relative;
    padding-left: 200px;
}

.consult-title {
    color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 30px;
}

.industries {
    display: flex;
    flex-wrap: wrap;// 使子元素换行
    align-items: center;
    gap: 30px;
}

.industries span {
    color: #fff;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 15px;
    margin: 10px;
    font-size: 20px;
}

.industries span::before {
    content: "|"; /* 添加竖线 */
    position: absolute;// 设置绝对定位
    left: 0;
    color: #fff;
    font-size: 25px;// 设置竖线大小
}

/* 响应式布局 */
@media (max-width: 768px) {
.header-section h1 {
  font-size: 2rem;
}

.our-flow h2 {
  font-size: 1.5rem;
}

.header-section p,
.btn-consult {
  font-size: 0.9rem;
}
}
</style>